﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace System.CJL.Infrstructre.Migrations
{
    /// <inheritdoc />
    public partial class 修改成品入库表 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "AddName",
                table: "Storages",
                type: "text",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "AddTime",
                table: "Storages",
                type: "timestamp with time zone",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "DelectName",
                table: "Storages",
                type: "text",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "DelectTime",
                table: "Storages",
                type: "timestamp with time zone",
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "IsDelete",
                table: "Storages",
                type: "boolean",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<string>(
                name: "UpdateName",
                table: "Storages",
                type: "text",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "UpdateTime",
                table: "Storages",
                type: "timestamp with time zone",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "AddName",
                table: "FinishedProducts",
                type: "text",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "AddTime",
                table: "FinishedProducts",
                type: "timestamp with time zone",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "DelectName",
                table: "FinishedProducts",
                type: "text",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "DelectTime",
                table: "FinishedProducts",
                type: "timestamp with time zone",
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "IsDelete",
                table: "FinishedProducts",
                type: "boolean",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<string>(
                name: "UpdateName",
                table: "FinishedProducts",
                type: "text",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "UpdateTime",
                table: "FinishedProducts",
                type: "timestamp with time zone",
                nullable: true);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "AddName",
                table: "Storages");

            migrationBuilder.DropColumn(
                name: "AddTime",
                table: "Storages");

            migrationBuilder.DropColumn(
                name: "DelectName",
                table: "Storages");

            migrationBuilder.DropColumn(
                name: "DelectTime",
                table: "Storages");

            migrationBuilder.DropColumn(
                name: "IsDelete",
                table: "Storages");

            migrationBuilder.DropColumn(
                name: "UpdateName",
                table: "Storages");

            migrationBuilder.DropColumn(
                name: "UpdateTime",
                table: "Storages");

            migrationBuilder.DropColumn(
                name: "AddName",
                table: "FinishedProducts");

            migrationBuilder.DropColumn(
                name: "AddTime",
                table: "FinishedProducts");

            migrationBuilder.DropColumn(
                name: "DelectName",
                table: "FinishedProducts");

            migrationBuilder.DropColumn(
                name: "DelectTime",
                table: "FinishedProducts");

            migrationBuilder.DropColumn(
                name: "IsDelete",
                table: "FinishedProducts");

            migrationBuilder.DropColumn(
                name: "UpdateName",
                table: "FinishedProducts");

            migrationBuilder.DropColumn(
                name: "UpdateTime",
                table: "FinishedProducts");
        }
    }
}
